import request from '@/utils/request'
export const getLogin = (data) => {
  return request.post('/api/user-service/user/login', data)
}
// 工单状态统计
export const taskstate = (start, end) => {
  return request.get(`/api/task-service/task/taskReportInfo/${start}/${end}`)
}
// 获取一定时间内的总订单
export const orderCount = (params) => {
  return request.get('/api/order-service/report/orderCount/', { params })
}
export const orderAmount = (params) => {
  return request.get('/api/order-service/report/orderAmount/', { params })
}
// 商品热榜
// 商品热榜
export const getSkuTop = (start, end) => request.get(`/api/order-service/report/skuTop/10/${start}/${end}`)
// 柱形
export const regionCollec = (start, end) => {
  return request.get(`/api/order-service/report/regionCollect/${start}/${end}`)
}
// 曲折1日2yue
export const mounthCollect = (start, end, collectType) => {
  return request.get(`/api/order-service/report/amountCollect/${collectType}/${start}/${end}`)
}
// 点位
export const Five = () => {
  return request.get('/api/vm-service/node/count')
}
// 点位商家
export const FiveX = () => {
  return request.get('/api/user-service/partner/count')
}
// 扇形图
export const San = () => {
  return request.get('/api/vm-service/node/nodeCollect')
}
